package com.sky.mapper;

import com.sky.entity.RecordVideo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @ClassName: xiaoZhang
 * @Description:
 * @Author: Zhang
 * @CreateDate: 2025-05-14 19:07
 */
@Mapper
public interface RecordMapper {
    @Insert("insert into recordvideos (" +
            "record_id, record_data,create_time , update_time )" +
            "values" +
            "(#{recordId},#{recordData}, #{createTime}, #{updateTime})"
    )
    void recordVideoInsert(RecordVideo recordVideo);

    @Select("select * from recordvideos where record_id = #{recordId}")
    RecordVideo getByIdRecord(String recordId);
}
